//
//  ByJobViewModel.h
//  jmsfhz_ios
//
//  Created by pro on 16/8/3.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByBaseViewModel.h"

@protocol ByJobQueryDelegate;
@protocol ByJobSendDelegate;
@protocol ByJobTahtMySendDelegate;

@interface ByJobViewModel : ByBaseViewModel

@property (nonatomic, weak) id<ByJobQueryDelegate>jobDelegate;
@property (nonatomic, weak) id<ByJobSendDelegate>jobSendDelegate;
@property (nonatomic, weak) id<ByJobTahtMySendDelegate>jobThatMySendDelegate;

- (void)jobQuery:(ByNetParamsModel *)params;                    // 查询工作
- (void)jobSend:(ByNetParamsModel *)params;                     // 投简历
- (void)jobThatMySend:(ByNetParamsModel *)params;               // 我投过的简历

@end

/** 查询岗位 */
@protocol ByJobQueryDelegate <NSObject>

- (void)jobQuerySuccess:(ByNetBaseResult *)result;
- (void)jobQueryFailure:(ByNetBaseResult *)result;
@end

/** 投简历 */
@protocol ByJobSendDelegate <NSObject>

- (void)jobSendSuccess:(ByNetBaseResult *)result;
- (void)jobSendFailure:(ByNetBaseResult *)result;
@end

/** 我投过的简历 */
@protocol ByJobTahtMySendDelegate <NSObject>

- (void)jobThatMySendSuccess:(ByNetBaseResult *)result;
- (void)jobThatMySendFailure:(ByNetBaseResult *)result;
@end
